package cn.edu.sgu.www.mhxysy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 角色账号表
 * @author heyunlin
 * @version 1.0
 */
@Data
@TableName("jsgl_jszhb")
public class RoleAccount implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	private String id;

	/**
	 * 角色名
	 */
	private String name;

	/**
	 * 等级
	 */
	private Integer grade;

	/**
	 * 人物评分
	 */
	private Integer score;

	/**
	 * 金币
	 */
	private Integer jinbi;

	/**
	 * 账号ID
	 */
	private String accountId;

	/**
	 * 门派ID
	 */
	private Integer schoolId;

	/**
	 * 服务器ID
	 */
	private Integer serverId;

	/**
	 * 帮派ID
	 */
	private Integer gangId;

	/**
	 * 角色造型ID
	 */
	private Integer modelingId;

	/**
	 * 角色创建时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime birthday;

	/**
	 * 最后一次修改时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime lastUpdateTime;
}